#include "enscene.h"
#include "QDebug"

EnScene::EnScene()
{
    //setSceneRect( 0, 0, width, height );
    //initGL();
    backgroundColor.setRgb( 0, 100, 150 );
}

EnScene::~EnScene()
{

}

void EnScene::initGL()
{

}

/*
void EnScene::drawBackground( QPainter *painter, const QRectF &rect )
{

    //float width = float( painter->device()->width() );
    //float height = float( painter->device()->height() );
    if( painter->paintEngine()->type() != QPaintEngine::OpenGL
        && painter->paintEngine()->type() != QPaintEngine::OpenGL2 )
    {
        qWarning("OpenGLScene: drawBackground needs a QGLWidget to be set as viewport on the graphics view");
        return;
    }

    painter->beginNativePainting();
    glClearColor( backgroundColor.redF(), backgroundColor.greenF(), backgroundColor.blueF(), 1.0f );
    glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );

    painter->endNativePainting();
    //qDebug() << "Scene Draw" << endl;

}
*/

/*
void EnScene::mousePressEvent( QGraphicsSceneMouseEvent *event )
{

    // Always remember to call the parent's method
    QGraphicsScene::mousePressEvent( event );
}
*/

/*
void EnScene::mouseReleaseEvent( QGraphicsSceneMouseEvent *event )
{

    // Always remember to call the parent's method
    QGraphicsScene::mouseReleaseEvent( event );
}
*/


/*
void EnScene::mouseMoveEvent( QGraphicsSceneMouseEvent *event )
{

    // Always remember to call the parent's method
    QGraphicsScene::mouseMoveEvent( event );
}


void EnScene::wheelEvent( QGraphicsSceneWheelEvent *event )
{
    // Always remember to call the parent's method
    QGraphicsScene::wheelEvent( event );
}
*/

/*
void EnScene::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
{

    // Always remember to call the parent's method
    QGraphicsScene::dragMoveEvent( event );
}
*/
